package com.hydl.power.mapper;

import com.hydl.power.pojo.Camera;
import com.hydl.power.pojo.CameraExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CameraMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Camera record);

    int insertSelective(Camera record);

    List<Camera> selectByExample(CameraExample example);

    Camera selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Camera record);

    int updateByPrimaryKey(Camera record);

    List<Camera> queryAllByPage(@Param("pageNumKey") Integer pageNum, @Param("pageSizeKey") Integer pageSize, String projectId, String cityId, String roomId);

    Camera selectById(Integer id);

    int deleteById(Integer id);

    String getCameraDeviceNumberByRoomId(String roomId);

    int queryCamera(String cameraDeviceSerial);
}
